public class invert_binary_tree {
    public TreeNode invertTree(TreeNode root) {
            if (root==null)return null;
            TreeNode right=invertTree(root.right);
            TreeNode left=invertTree(root.left);
            root.left=right;
            root.right=left;
            return root;
    }
}
